<?php

use Illuminate\Http\Request;

/*
|--------------------------------------------------------------------------
| API Routes
|--------------------------------------------------------------------------
|
| Here is where you can register API routes for your application. These
| routes are loaded by the RouteServiceProvider within a group which
| is assigned the "api" middleware group. Enjoy building your API!
|
*/

Route::middleware('auth:api')->get('/user', function (Request $request) {
    return $request->user();
});
Route::post('index/add_plan', 'IndexController@addPlan');
Route::get('index/index', 'IndexController@index');
Route::get('notice/lists', 'NoticeController@lists');
Route::get('notice/detail', 'NoticeController@detail');
Route::post('travel/add_plan_two', 'TravelController@addPlanTwo');
Route::get('travel/get_data', 'TravelController@getData');
Route::post('travel/add_plan_three', 'TravelController@addPlanThree');
Route::post('travel/status_lock', 'TravelController@statusLock');
Route::post('travel/status_complete', 'TravelController@statusComplete');
Route::get('user/get_user', 'UserController@getUser');
Route::post('user/save_user', 'UserController@saveUser');
Route::post('travel/share', 'TravelController@share');
Route::get('user/my_travel', 'UserController@myTravel');
Route::get('index/contact', 'IndexController@contact');
Route::get('travel/get_find', 'TravelController@getFind');
Route::post('travel/all_save', 'TravelController@allSave');